package com.eshop.modules.mp.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.modules.mp.service.dto.WechatLiveGoodsDto;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.modules.mp.service.dto.WechatLiveGoodsQueryCriteria;
import com.eshop.modules.mp.domain.WechatLiveGoods;
import com.eshop.common.service.BaseService;

public interface WechatLiveGoodsService extends BaseService<WechatLiveGoods>
{
    Map<String, Object> queryAll(final WechatLiveGoodsQueryCriteria criteria, final Pageable pageable);
    
    List<WechatLiveGoods> queryAll(final WechatLiveGoodsQueryCriteria criteria);
    
    void download(final List<WechatLiveGoodsDto> all, final HttpServletResponse response) throws IOException;
    
    boolean saveGoods(final WechatLiveGoods resources);
    
    boolean synchroWxOlLive(final List<Integer> goodsIds);
    
    void removeGoods(final Long id);
    
    void updateGoods(final WechatLiveGoods resources);
}
